<?php 
#error_reporting(E_ALL);
// Lay cac thong so cau hinh chung
include "../../app_global.php";
// Ham thuc hien lay ten file va hien thi noi dung
include "../../isa-lib/isa-function/isa_public_function.php";
//Ham thuc hien xay dung cay
include "../../isa-lib/isa-function/class_xslt.php";
require_once("../../isa-lib/nusoap/nusoap.php");	//---include by Dinh, Nguyen - 120707
// Lay cac hang so cua chuc nang nay
include "../../const.php";
//Ket noi co so du lieu
include "../../connect.php";
// Mo ket noi bang ADODB
include "../../connect_ado.php";
include "../init_session.php";
// Lay cac hang so cua chuc nang nay
include "const.php";
include "page.php";
// Lay cac thong so cau hinh rieng cho chuc nang nay
include "app_local.php";
include "../../onegate_function.php";
?>
<script src="../../isa-lib/isa-js/isa_util.js"></script>
<script src="../isa_onegate.js"></script>
<script src="../vtyping.js" ></script>
<script src="js_qa.js"></script>
<?php
if (!isset($_REQUEST['modal_dialog_mode'])) {
	include "../../dsp_viewing_mode_header.php";
}else{
	include "../../dsp_modal_dialog_header.php";
}

include_once $FOLDER_DEVEDIT_CLASS;

switch($fuseaction) {
	/*
	 case "DISPLAY_ALL_QA_QUESTION_BY_ALL_AGENCY";
	 	include "qry_all_qa_question_by_all_agency.php";
		include "dsp_all_qa_question_by_all_agency.php";	
		break;
	case "DISPLAY_ALL_CATE_BY_AGENCY";
		include "qry_all_agency.php";	
	 	include "qry_all_cate_by_agency.php";
		include "dsp_all_cate_by_agency.php";	
		break;
	 case "DISPLAY_ALL_QA_BY_CATE";
	 	include "qry_all_qa_question_by_cate.php";
		include "dsp_all_qa_question_by_cate.php";	
		break;	
	
	case "DISPLAY_ALL_QA_QUESTION_BY_ALL_CATE";
	 	include "qry_all_qa_question_by_all_cate.php";
		include "dsp_all_qa_question_by_all_cate.php";	
		break;	
	 case "DISPLAY_ALL_AGENCY_BY_CATE";
		include "qry_all_cate.php";
	 	include "qry_all_agency_by_cate.php";
		include "dsp_all_agency_by_cate.php";	
		break;
	 case "DISPLAY_ALL_QA_BY_AGENCY";
	 	include "qry_all_qa_question_by_agency.php";
		include "dsp_all_qa_question_by_agency.php";	
		break;	
	
	 case "DISPLAY_ALL_QA_QUESTION_BY_TIME";
	 	include "qry_all_qa_question_by_time.php";
		include "dsp_all_qa_question_by_time.php";	
		break;
*/
	case "DISPLAY_ALL_QA_BY_ALL_CATE";	
		include "qry_all_qa _by_all_cate.php";
		include "dsp_all_qa _by_all_cate.php"; 				
		break;
	case "DISPLAY_ALL_QA_BY_CATE";
		include "qry_all_cate.php";
		include "qry_all_qa _by _cate.php";
		include "dsp_all_qa _by_cate.php"; 				
		break;
	case "DISPLAY_SINGLE_QA_QUESTION";	
		include "qry_single_qa_question.php";
		include "dsp_single_qa_question.php"; 
		break;
	case "DISPLAY_ALL_QA_QUESTION_FOR_CONDITION";	
		include "../../list/cate/qry_all_cate.php";
		include "../../list/agency/qry_all_agency.php";
		include "dsp_all_qa_question_for_condition.php"; 				
		break;
	case "DISPLAY_ALL_CONDITIONS_FOR_SEARCH";	
		include "qry_all_cate_agency_for_search_by_conditions.php";
		include "dsp_all_conditions.php"; 				
		break;
	case "DISPLAY_ALL_QA_BY_SEARCH_CONDITIONS";	
		include "qry_all_qa_by_search_conditions.php";
		include "dsp_all_qa_by_search_conditions.php"; 				
		break;
	case "DISPLAY_SINGLE_QA_QUESTION_FOR_SENDING";	
		include "qry_all_cate.php";
		include "../../list/agency/qry_all_agency.php";
		include "dsp_single_qa_question_for_sending.php"; 
		break; 
	case "SENDING_QA_QUESTION";	
		include "act_sending_qa_question.php"; 		
		break;
	case "DISPLAY_ALL_QA_BY_FTS";	
		include "qry_all_qa_by_fts.php";
		include "dsp_all_qa_by_fts.php"; 
		break;
	default:
		include "qry_all_qa _by_all_cate.php";
		include "dsp_all_qa _by_all_cate.php"; 				
		break;
	}
	include "../../disconnect.php";
if (!isset($_REQUEST['modal_dialog_mode'])) {
	include "../../dsp_viewing_mode_footer.php";
}else{
	include "../../dsp_modal_dialog_footer.php";
}
?>